3.1089 \(\int (d+e x)^3 \left (c d^2+2 c d e x+c e^2 x^2\right )^p \, dx\)

Optimal. Leaf size=39 \[ \frac{\left (c d^2+2 c d e x+c e^2 x^2\right )^{p+2}}{2 c^2 e (p+2)} \]

[Out]

(c*d^2 + 2*c*d*e*x + c*e^2*x^2)^(2 + p)/(2*c^2*e*(2 + p))

_______________________________________________________________________________________

Rubi [A]  time = 0.0674204, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067 \[ \frac{\left (c d^2+2 c d e x+c e^2 x^2\right )^{p+2}}{2 c^2 e (p+2)} \]

Antiderivative was successfully verified.

[In]  Int[(d + e*x)^3*(c*d^2 + 2*c*d*e*x + c*e^2*x^2)^p,x]

[Out]

(c*d^2 + 2*c*d*e*x + c*e^2*x^2)^(2 + p)/(2*c^2*e*(2 + p))

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 19.5948, size = 34, normalized size = 0.87 \[ \frac{\left (c d^{2} + 2 c d e x + c e^{2} x^{2}\right )^{p + 2}}{2 c^{2} e \left (p + 2\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x+d)**3*(c*e**2*x**2+2*c*d*e*x+c*d**2)**p,x)

[Out]

(c*d**2 + 2*c*d*e*x + c*e**2*x**2)**(p + 2)/(2*c**2*e*(p + 2))

_______________________________________________________________________________________

Mathematica [A]  time = 0.0269378, size = 30, normalized size = 0.77 \[ \frac{(d+e x)^4 \left (c (d+e x)^2\right )^p}{2 e (p+2)} \]

Antiderivative was successfully verified.

[In]  Integrate[(d + e*x)^3*(c*d^2 + 2*c*d*e*x + c*e^2*x^2)^p,x]

[Out]

((d + e*x)^4*(c*(d + e*x)^2)^p)/(2*e*(2 + p))

_______________________________________________________________________________________

Maple [A]  time = 0.001, size = 40, normalized size = 1. \[{\frac{ \left ( ex+d \right ) ^{4} \left ( c{e}^{2}{x}^{2}+2\,cdex+c{d}^{2} \right ) ^{p}}{2\,e \left ( 2+p \right ) }} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x+d)^3*(c*e^2*x^2+2*c*d*e*x+c*d^2)^p,x)

[Out]

1/2*(e*x+d)^4/e/(2+p)*(c*e^2*x^2+2*c*d*e*x+c*d^2)^p

_______________________________________________________________________________________

Maxima [A]  time = 0.708934, size = 423, normalized size = 10.85 \[ \frac{{\left (c^{p} e x + c^{p} d\right )}{\left (e x + d\right )}^{2 \, p} d^{3}}{e{\left (2 \, p + 1\right )}} + \frac{3 \,{\left (c^{p} e^{2}{\left (2 \, p + 1\right )} x^{2} + 2 \, c^{p} d e p x - c^{p} d^{2}\right )}{\left (e x + d\right )}^{2 \, p} d^{2}}{2 \,{\left (2 \, p^{2} + 3 \, p + 1\right )} e} + \frac{3 \,{\left ({\left (2 \, p^{2} + 3 \, p + 1\right )} c^{p} e^{3} x^{3} +{\left (2 \, p^{2} + p\right )} c^{p} d e^{2} x^{2} - 2 \, c^{p} d^{2} e p x + c^{p} d^{3}\right )}{\left (e x + d\right )}^{2 \, p} d}{{\left (4 \, p^{3} + 12 \, p^{2} + 11 \, p + 3\right )} e} + \frac{{\left ({\left (4 \, p^{3} + 12 \, p^{2} + 11 \, p + 3\right )} c^{p} e^{4} x^{4} + 2 \,{\left (2 \, p^{3} + 3 \, p^{2} + p\right )} c^{p} d e^{3} x^{3} - 3 \,{\left (2 \, p^{2} + p\right )} c^{p} d^{2} e^{2} x^{2} + 6 \, c^{p} d^{3} e p x - 3 \, c^{p} d^{4}\right )}{\left (e x + d\right )}^{2 \, p}}{2 \,{\left (4 \, p^{4} + 20 \, p^{3} + 35 \, p^{2} + 25 \, p + 6\right )} e} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^3*(c*e^2*x^2 + 2*c*d*e*x + c*d^2)^p,x, algorithm="maxima")

[Out]

(c^p*e*x + c^p*d)*(e*x + d)^(2*p)*d^3/(e*(2*p + 1)) + 3/2*(c^p*e^2*(2*p + 1)*x^2
 + 2*c^p*d*e*p*x - c^p*d^2)*(e*x + d)^(2*p)*d^2/((2*p^2 + 3*p + 1)*e) + 3*((2*p^
2 + 3*p + 1)*c^p*e^3*x^3 + (2*p^2 + p)*c^p*d*e^2*x^2 - 2*c^p*d^2*e*p*x + c^p*d^3
)*(e*x + d)^(2*p)*d/((4*p^3 + 12*p^2 + 11*p + 3)*e) + 1/2*((4*p^3 + 12*p^2 + 11*
p + 3)*c^p*e^4*x^4 + 2*(2*p^3 + 3*p^2 + p)*c^p*d*e^3*x^3 - 3*(2*p^2 + p)*c^p*d^2
*e^2*x^2 + 6*c^p*d^3*e*p*x - 3*c^p*d^4)*(e*x + d)^(2*p)/((4*p^4 + 20*p^3 + 35*p^
2 + 25*p + 6)*e)

_______________________________________________________________________________________

Fricas [A]  time = 0.227601, size = 96, normalized size = 2.46 \[ \frac{{\left (e^{4} x^{4} + 4 \, d e^{3} x^{3} + 6 \, d^{2} e^{2} x^{2} + 4 \, d^{3} e x + d^{4}\right )}{\left (c e^{2} x^{2} + 2 \, c d e x + c d^{2}\right )}^{p}}{2 \,{\left (e p + 2 \, e\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^3*(c*e^2*x^2 + 2*c*d*e*x + c*d^2)^p,x, algorithm="fricas")

[Out]

1/2*(e^4*x^4 + 4*d*e^3*x^3 + 6*d^2*e^2*x^2 + 4*d^3*e*x + d^4)*(c*e^2*x^2 + 2*c*d
*e*x + c*d^2)^p/(e*p + 2*e)

_______________________________________________________________________________________

Sympy [A]  time = 2.76011, size = 233, normalized size = 5.97 \[ \begin{cases} \frac{x}{c^{2} d} & \text{for}\: e = 0 \wedge p = -2 \\d^{3} x \left (c d^{2}\right )^{p} & \text{for}\: e = 0 \\\frac{\log{\left (\frac{d}{e} + x \right )}}{c^{2} e} & \text{for}\: p = -2 \\\frac{d^{4} \left (c d^{2} + 2 c d e x + c e^{2} x^{2}\right )^{p}}{2 e p + 4 e} + \frac{4 d^{3} e x \left (c d^{2} + 2 c d e x + c e^{2} x^{2}\right )^{p}}{2 e p + 4 e} + \frac{6 d^{2} e^{2} x^{2} \left (c d^{2} + 2 c d e x + c e^{2} x^{2}\right )^{p}}{2 e p + 4 e} + \frac{4 d e^{3} x^{3} \left (c d^{2} + 2 c d e x + c e^{2} x^{2}\right )^{p}}{2 e p + 4 e} + \frac{e^{4} x^{4} \left (c d^{2} + 2 c d e x + c e^{2} x^{2}\right )^{p}}{2 e p + 4 e} & \text{otherwise} \end{cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x+d)**3*(c*e**2*x**2+2*c*d*e*x+c*d**2)**p,x)

[Out]

Piecewise((x/(c**2*d), Eq(e, 0) & Eq(p, -2)), (d**3*x*(c*d**2)**p, Eq(e, 0)), (l
og(d/e + x)/(c**2*e), Eq(p, -2)), (d**4*(c*d**2 + 2*c*d*e*x + c*e**2*x**2)**p/(2
*e*p + 4*e) + 4*d**3*e*x*(c*d**2 + 2*c*d*e*x + c*e**2*x**2)**p/(2*e*p + 4*e) + 6
*d**2*e**2*x**2*(c*d**2 + 2*c*d*e*x + c*e**2*x**2)**p/(2*e*p + 4*e) + 4*d*e**3*x
**3*(c*d**2 + 2*c*d*e*x + c*e**2*x**2)**p/(2*e*p + 4*e) + e**4*x**4*(c*d**2 + 2*
c*d*e*x + c*e**2*x**2)**p/(2*e*p + 4*e), True))

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.229634, size = 230, normalized size = 5.9 \[ \frac{x^{4} e^{\left (p{\rm ln}\left (c x^{2} e^{2} + 2 \, c d x e + c d^{2}\right ) + 4\right )} + 4 \, d x^{3} e^{\left (p{\rm ln}\left (c x^{2} e^{2} + 2 \, c d x e + c d^{2}\right ) + 3\right )} + 6 \, d^{2} x^{2} e^{\left (p{\rm ln}\left (c x^{2} e^{2} + 2 \, c d x e + c d^{2}\right ) + 2\right )} + 4 \, d^{3} x e^{\left (p{\rm ln}\left (c x^{2} e^{2} + 2 \, c d x e + c d^{2}\right ) + 1\right )} + d^{4} e^{\left (p{\rm ln}\left (c x^{2} e^{2} + 2 \, c d x e + c d^{2}\right )\right )}}{2 \,{\left (p e + 2 \, e\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^3*(c*e^2*x^2 + 2*c*d*e*x + c*d^2)^p,x, algorithm="giac")

[Out]

1/2*(x^4*e^(p*ln(c*x^2*e^2 + 2*c*d*x*e + c*d^2) + 4) + 4*d*x^3*e^(p*ln(c*x^2*e^2
 + 2*c*d*x*e + c*d^2) + 3) + 6*d^2*x^2*e^(p*ln(c*x^2*e^2 + 2*c*d*x*e + c*d^2) +
2) + 4*d^3*x*e^(p*ln(c*x^2*e^2 + 2*c*d*x*e + c*d^2) + 1) + d^4*e^(p*ln(c*x^2*e^2
 + 2*c*d*x*e + c*d^2)))/(p*e + 2*e)